<template>
    <!--该模块只开放给管理员-->
    <a-sub-menu key="System" v-isAdmin>
        <template #title>
            <span>
                <SafetyOutlined />
                <span>系统管理</span>
            </span>
        </template>
        <a-menu-item key="/system/user">
            <router-link to="/system/user">
                <user-outlined />
                <span>用户管理</span>
            </router-link>
        </a-menu-item>
        <a-menu-item key="/system/dept">
            <router-link to="/system/dept">
                <BranchesOutlined/>
                <span>部门管理</span>
            </router-link>
        </a-menu-item>
        <a-menu-item key="/system/role">
            <router-link to="/system/role">
                <UserAddOutlined/>
                <span>角色管理</span>
            </router-link>
        </a-menu-item>
        <!-- <a-menu-item key="/system/job/type">
            <router-link to="/system/job/type">
                <UserAddOutlined/>
                <span>岗位分类</span>
            </router-link>
        </a-menu-item>
        <a-menu-item key="/system/job/grade">
            <router-link to="/system/job/grade">
                <UserAddOutlined/>
                <span>职级管理</span>
            </router-link>
        </a-menu-item>
       
        <a-menu-item key="/system/job">
            <router-link to="/system/job">
                <UserAddOutlined/>
                <span>岗位管理</span>
            </router-link>
        </a-menu-item> -->
    </a-sub-menu>
</template>
<script setup>
import {
    SafetyOutlined,
    UserOutlined,
    BranchesOutlined,
    UserAddOutlined
} from '@ant-design/icons-vue'
const props = defineProps({
    theme: {
        type: String,
        default: 'light'
    }
})
</script>